﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using mobliebo;

namespace mobileshopping
{
    public partial class WebForm8 : System.Web.UI.Page
    {
        Registration reg = new Registration();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = reg.GetRecords("", "", "", "", -99, "", "", "", -99, "", "", " and ");
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            reg.Name = txtName.Text;
            reg.Emailid = txtEmailid.Text;
            reg.password = txtPassword.Text;
            reg.confirm_password = txtconfirmPassword.Text;
            reg.mobileno =Convert.ToInt32(txtMobileno.Text);
            reg.city = ddlCity.SelectedValue.ToString();
            reg.state = ddlState.SelectedValue.ToString();
            reg.pincode = Convert.ToInt32(txtPincode.Text);
            reg.security_question = ddlSecurityquestions.SelectedValue.ToString();
            reg.Answer = txtAnswer.Text;
            reg.SaveRecords();
           // Response.Redirect("~/Userlogin.aspx");
        }
    }
}
